package com.ruibang.glass.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_sys_dept")
public class DeptEntity implements Serializable {

    @ApiModelProperty(value = "部门id")
    @TableId(value = "dept_id", type = IdType.ASSIGN_UUID)
    private String deptId;
    //部门代码
    @ApiModelProperty(value = "部门code")
    private String deptCode;
    //部门名称
    @NotBlank(message = "部门名称不能为空")
    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "部门类型,0:总行,1：支行")
    private String deptType;
    //父部门id
    @ApiModelProperty(value = "父部门id")
    private String parentDeptId;
    //序号
    @ApiModelProperty(value = "序号")
    private Integer orderNum;
    //状态
    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "部门经理")
    private String deptManager;

    @ApiModelProperty(value = "部门分管领导")
    private String deptLeader;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
